<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>


  <script>
    let arr = new Array();
    // console.log(arr);

    let board = [
      ['R', 'N', 'B', 'Q', 'K', 'B', 'N', 'R'],
      ['P', 'P', 'P', 'P', 'P', 'P', 'P', 'P'],
      [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
      [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
      [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
      [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
      ['p', 'p', 'p', 'p', 'p', 'p', 'p', 'p'],
      ['r', 'n', 'b', 'q', 'k', 'b', 'n', 'r']]

    // console.log(board.join('\n') + '\n\n')
    // console.log(board.join())

    // Move King's Pawn forward 2
    // board[4][4] = board[6][4]
    // board[6][4] = ' '
    // console.log(board.join('\n'))

    let values = []
    for (let x = 0; x < 5; x++) {
      values.push([
        2 ** x,
        2 * x ** 2
      ])
    }
    // console.table(values)


    // 等价于 o = new Boolean(true);
    var o1 = new Object(true);
    // console.log(o1);

    // 等价于 o = new Boolean(false);
    var o2 = new Object(Boolean());
    // console.log(o2);


		let arrTest1 = ['-1']
		let arrTest2 = ['1', '3', '5']

		let str1 = arrTest1.toString()
		let str2 = arrTest2.toString()

		console.log(str2);
		console.log(typeof str2);



  </script>
</body>

</html>